import { Routes, RouterModule }  from '@angular/router';
import { RoleComponent } from './role.component';
import { RoleDetailComponent } from './detail/role-detail.component';

const routes: Routes = [
  {
    path: '',
    component: RoleComponent
  },
  {
      path:'detail/:role_id',
      component: RoleDetailComponent
  },
];

export const routing = RouterModule.forChild(routes);